package us.icitap.cm.business.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.eclipse.persistence.annotations.Customizer;
import org.jboss.weld.bean.builtin.FacadeInjectionPoint;

import us.icitap.cm.utils.MyCustomizer;

@Entity
@Customizer(MyCustomizer.class)
@Table(name="SUPPLEMENT_REPORT", schema="MPC")
public class SupplementReport implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1903498050549799259L;

	@Id
	@Column(insertable=false, updatable = false, nullable=false)
	private Integer id;

	@Column(name="SR_UNIQUE_NUMBER", length=15)
	private String srUniqueNumber;
	
	
	
	@OneToOne
	@JoinColumn(name="ID",nullable=false)
	private Report report;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Report getReport() {
		return report;
	}

	public void setReport(Report report) {
		this.report = report;
	}

	@Override
	public String toString() {
		return this.getSrUniqueNumber() + ", " + this.getReport().getPrimaryPoliceCode().getTag();
			

	}

	public String getSrUniqueNumber() {
		return srUniqueNumber;
	}

	public void setSrUniqueNumber(String srUniqueNumber) {
		this.srUniqueNumber = srUniqueNumber;
	}


}
